<?php
/** 
 * $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/plugins/modifier.pncDateTimeString.php,v $
 * $Author: pcornelissen $
 * $Revision: 1.3 $
 * $Date: 2003/12/08 12:09:47 $
 *
 * Type: Modifier
 *
 * generates a date and time string from given timestamp depending on the setting of PN
 * @param $string the timestamp
 * @return string 
 */
function smarty_modifier_pncDateTimeString ($string)
{
//    setlocale ( LC_TIME, pnConfigGetVar( 'locale' ) );
    if( $string )
    {
        return date( "".pnModGetVar( 'pncommerce', 'DateFormat' )." ".pnModGetVar( 'pncommerce', 'TimeFormat' ), $string );
    }
    return;
}
?>
